.class Lcom/estrongs/android/taskmanager/widget/b;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# instance fields
.field final synthetic a:Lcom/estrongs/android/taskmanager/widget/TmWidgetSetting;

.field private final synthetic b:Landroid/content/Context;


# direct methods
.method constructor <init>(Lcom/estrongs/android/taskmanager/widget/TmWidgetSetting;Landroid/content/Context;)V
    .locals 0

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/widget/b;->a:Lcom/estrongs/android/taskmanager/widget/TmWidgetSetting;

    iput-object p2, p0, Lcom/estrongs/android/taskmanager/widget/b;->b:Landroid/content/Context;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 4

    const/4 v3, 0x3

    const/4 v1, 0x2

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/widget/b;->b:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/ht;->i(Landroid/content/Context;)I

    move-result v0

    if-ne v0, v1, :cond_1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/widget/b;->b:Landroid/content/Context;

    invoke-static {v0, v1}, Lcom/estrongs/android/taskmanager/TaskManager;->a(Landroid/content/Context;I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/widget/b;->b:Landroid/content/Context;

    const v1, 0x7f070022

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/widget/b;->a:Lcom/estrongs/android/taskmanager/widget/TmWidgetSetting;

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/widget/TmWidgetSetting;->finish()V

    return-void

    :cond_1
    if-ne v0, v3, :cond_2

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/widget/b;->b:Landroid/content/Context;

    invoke-static {v0, v3}, Lcom/estrongs/android/taskmanager/TaskManager;->a(Landroid/content/Context;I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/widget/b;->b:Landroid/content/Context;

    const v1, 0x7f070035

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :cond_2
    const/4 v1, 0x4

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/widget/b;->b:Landroid/content/Context;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/estrongs/android/taskmanager/TaskManager;->a(Landroid/content/Context;I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/widget/b;->b:Landroid/content/Context;

    const v1, 0x7f07003b

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0
.end method
